<template>
  <table class="table table-bordered table-stripped">
    <!-- 表格标题区域 -->
    <thead>
    
      <slot name="to"></slot>
      
    </thead>
    <!-- 表格主体区域 -->
    <tbody>
      <tr v-for="(i,e) in arr" :key="e+1">
        <!-- <td>{{e+1}}</td>
        <td>{{i.goods_name}}</td>
        <td>{{i.goods_price}}</td>
        <td>{{i.tags.map((i)=> i).join('')}}</td>
        <td><button class="btn btn-danger btn-sm">删除</button></td> -->
         <slot  name="body" :i = 'i' :e ='e'></slot>
      </tr>
    </tbody>
  </table>
</template>

<script>
export default {
  props:{
    arr:{
        type:Array,
        required:true
    }
  }
}
</script>


<style scoped lang="less">
.my-goods-list {
  .badge {
    margin-right: 5px;
  }
}
</style>